home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1993-02-25 | 993 b | 36 lines |
- 'EXAMPLE PROGRAM FOUR
- '
- 'A program to print any times table from 1 to 99
- '
- '
- Rem Remove the mouse pointer,set text background
- Rem to blue and clear the screen to blue, see EXAMPLE1 and EXAMPLE2
- Hide : Paper 0 : Cls 0
- '
- '
- '
- Rem ask the user what table they want displayed and hold that number in TT
- Line Input "TYPE IN A NUMBER 1-99 ";TT
- '
- '
- Rem clear the screen of the previous input text and set curs off
- Cls 0 : Curs Off
- '
- '
- Rem set the for next loop starting at 1 and ending at 12 the counter stored in A
- For A=1 To 12
- '
- '
- Rem print the calculation A*TT to the screen
- Print A*TT
- '
- '
- Rem Amos now INCrements A automatically and checks to see if A is less than 12
- Rem which is the maximum we have asked it to go to , change it if you like.
- Rem If A is less than 12 Amos will jump back to do the next calculation.
- Next A
- '
- '
- Rem If A was more than or equal to 12 it will arrive here, where Amos waits
- Rem for a key press from you then jumps back to the editor.
- Wait Key : Edit